package com.lianniu.web.favorite.dao;

import com.lianniu.web.favorite.model.FavoriteVo;
import com.lianniu.web.product.model.SkuProductVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017-05-07.
 */
public interface FavoriteDao {
    public int isFavorite(FavoriteVo vo);
    public boolean addToFavorite(FavoriteVo vo);
    public boolean updateFavoriteDelFlag(FavoriteVo vo);

    public List<SkuProductVo> getFavoritesProduct(Map<String, Object> map);
    int getFavoriteProductCount(Map<String,Object> map);
    public FavoriteVo getFavorite(@Param("userId")String userId,@Param("skuId")String skuId);
}
